<script>
$(document).ready(function()
{
    <?php 
        if (isset($notify) && $notify != "")
        {
            if ($notify == "slot_deactive_success") {
                $type = "success";
                $title = "Thông báo";
                $text = "Bạn đã xoá Slot thành công.";
                $icon = "picon icon16 brocco-icon-info white";
            } elseif ($notify == "slot_deactive_successwebs") {
                $type = "errorR";
                $title = "Thông báo";
                $text = "Có lỗi khi xoá Slot.";
                $icon = "picon icon16 brocco-icon-info white";
            } elseif ($notify == "create_slot_success") {
				$type = "success";
				$title = "Thông báo";
				$text = "Bạn đã tạo Slot thành công.";
				$icon = "picon icon16 brocco-icon-info white";
			} elseif ($notify == "slot_exists") {
				$type = "errorR";
				$title = "Thông báo";
				$text = "Slot đã tồn tại.";
				$icon = "picon icon16 brocco-icon-info white";
			} elseif ($notify == "create_slot_failed") {
				$type = "errorR";
				$title = "Thông báo";
				$text = "Tạo Slot thất bại.";
				$icon = "picon icon16 brocco-icon-info white";
			}

            ?>
            $.pnotify({
                type: '<?=$type?>',
                title: '<?=$title?>',
                text: '<?=$text?>',
                icon: '<?=$icon?>',
                opacity: 0.9,
                history: false,
                sticker: false
            });
            <?
        }
    ?>
});
</script>
<div class="row-fluid">
    <div class="span12">
        <div class="box gradient">
            <div class="title">
                <h4>
                    <span>Thêm mới Slot</span>
                </h4>
            </div>
            <div class="content" id="edit_option_form">
                <?php include_partial('slot_edit_form', array('slot_form' => $slot_form)) ?>
            </div>
        </div>
    </div>
</div>

<div class="row-fluid">
    <div class="span12">
        <div class="box gradient">
            <div class="title">
                <h4>
                    <span class="icon16 brocco-icon-grid"></span>
                    <span>Danh sách Slot</span>
                </h4>
            </div>
            <div class="content" id="slot_list">
                <?php include_partial('slot_list', array('slots' => $slots)) ?>
            </div>
        </div>
    </div>
</div>